<link href="__STATIC__/admin/css/tab.css" type="text/css" rel="stylesheet">
<link href="__STATIC__/admin/css/profiles.css" type="text/css" rel="stylesheet">
<link href="__STATIC__/admin/css/order.css" type="text/css" rel="stylesheet">

<div id="right-content"> <!-- ngView:  -->
    <div id="content" style="padding: 0px;" class="rel">
        <div id="order_hd" class="rel">
            <ul id="tab_ul" class="c_txt abs">
                <li class="tab_li pointer left rel for_gaq <?php if($type == '0'){ echo 'current_tab_li';}?> ">
                    <a href="<?php echo U('goods/index',array('type'=>0)) ?>"> 全部 </a>
                </li>
                <?php foreach($catelist as $v){?>
                <li class="tab_li pointer left rel for_gaq <?php if($type == $v['cid']){ echo 'current_tab_li';}?> ">
                    <a href="<?php echo U('goods/index',array('type'=>$v['cid'])) ?>"> <?php echo $v['cname'] ?> </a>
                </li>
                <?php }?>
            </ul>
            <div id="order_search_wrap" class="wrap">
                <form action="" method="get" name="order_search_form" id="order_search_form">
                    <input type="text" id="order_search_key" name="key" class="input block wrap input_y">
                </form>
            </div>
        </div>

        <ul id="list_ul" class="wrap font14">
            <li id="list_hd" class="c_txt over_hidden"  style="padding-left: 20px;">
                <div class="list_o_div rel">
                    <div class="list_order_a list_hd_lineH">商品名</div>
                    <div class="list_order_b list_hd_lineH">商品图片</div>
                    <div class="list_order_a list_hd_lineH">所属类型</div>
                    <div class="list_order_a list_hd_lineH">推荐价位</div>
                    <div class="list_order_a list_hd_lineH">vip1价位</div>
                    <div class="list_order_a list_hd_lineH">vip2价位</div>
                    <div class="list_order_e list_hd_lineH">添加时间</div>
                    <div class="list_order_e list_hd_lineH">操作</div>
                </div>
            </li>
            <?php foreach($gdata as $v){ ?>
            <li class="list_li" style="padding-left: 20px;">
                <div class="list_o_div rel">


                    <div class="list_order_a c_txt">
                        <table width="100%" height="100%" border="0" cellspacing="0">
                            <tr>
                                <td><?php echo $v['gname']; ?></td>
                            </tr>
                        </table>
                    </div>
                    <div class="list_order_b c_txt" style="height: 85px;">
                        <img src="__ROOT__/<?=$v['gpic']?>" height="85">
                    </div>
                    <div class="list_order_a c_txt">
                        <br>
                        <p><?php echo $v['cname']; ?></p>
                    </div>
                    <div class="list_order_a c_txt">
                        <br>
                        <p><?php echo $v['reprice']; ?></p>
                    </div>
                    <div class="list_order_a c_txt">
                        <br>
                        <p><?php echo $v['v1price']; ?></p>
                    </div>
                    <div class="list_order_a c_txt">
                        <br>
                        <p><?php echo $v['v2price'] ?></p>
                    </div>
                    <div class="list_order_e c_txt">
                        <br>
                        <p><?php echo date('Y-m-d H:i:s',$v['addtime']) ?></p>
                    </div>
                    <div class="list_order_e c_txt">
                        <table width="100%" height="100%" border="0" cellspacing="0">
                            <tr>
                                <td>
                                    <a href="<?php echo U('goods/add',array('gid'=>$v['gid'])); ?>" class="blu_txt list_o_btn">修改商品</a>
                                    <a href="<?php echo U('goods/del',array('gid'=>$v['gid'])); ?>" class="blu_txt list_o_btn">删除商品</a>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div class="clear"></div>
                </div>
            </li>
            <?php } ?>
            <li class="list_li list_page">
                <?php echo $page; ?>
            </li>
        </ul>
    </div>
</div>
</div>
</body>
</html>